
CLEANFILES = *~
DISTCLEANFILES = *~

bin_PROGRAMS = ms2wgen

ECMLIB = -lECM

CLX_HOME ?= @prefix@
CLX_HOME_INC = $(CLX_HOME)/include 
CLX_HOME_LIB = $(CLX_HOME)/lib

ms2wgen_SOURCES = ms2wgen.c ms2wgen.h genlog.c wgen_session.c wgenconf.c

INCLUDES = -I$(CLX_HOME_INC) -I../../lib

ms2wgen_LDFLAGS = -L$(CLX_HOME_LIB) -L/usr/lib64/disksim -static -dlopen self 

# RHEL6 requires -lgslcblas
ms2wgen_LDADD = ../../lib/libms2sim.la $(ECMLIB) -lgsl -lgslcblas -lm